//
//  PBSuggestController.m
//  PBHomeDemo
//
//  Created by Playboy on 2018/1/2.
//  Copyright © 2018年 tmkj. All rights reserved.
//

#import "PBSuggestController.h"
#import "PBSuggestDetailController.h"
#import "PBSuggestListController.h"

@interface PBSuggestController ()
@property (strong, nonatomic) IBOutlet UIButton *suggestListButton;

@end

@implementation PBSuggestController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self configure];
}

- (void)configure {
    [self configureView];
    [self configureData];
}

- (void)configureView {
    self.suggestListButton.layer.borderColor = [UIColor tm_separationBgColor].CGColor;
    self.suggestListButton.layer.borderWidth = 1.0f;
    self.suggestListButton.layer.cornerRadius = 3.0f;
}
- (void)configureData {
    
}
- (IBAction)topButtonClick:(UIButton *)sender {
    PBSuggestDetailController *vc = [[PBSuggestDetailController alloc] init];
    vc.type = sender.tag-100;
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)suggestListButtonClick:(id)sender {
    PBSuggestListController *vc = [[PBSuggestListController alloc] init];
    [self.navigationController pushViewController:vc animated:YES];
}


#pragma mark - super
- (void)resetNavigationBarItems {
    [super resetNavigationBarItems];
    self.title = @"投诉建议";
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
